package ManageGameHServer.classFile;

public final  class ScreateToken {
	public static String getscreate(String sendstr,Long timestamp) {
		//将要发送的字符串随机取16个     时间戳转换成十六进制     加上需要发送的字符串的12个
		String hexTime = Long.toHexString(timestamp);
		int hashCode = sendstr.hashCode();
		String hash1=String.valueOf(hashCode/2);
		String screate=hexTime.substring(0, 2)+"E"+hash1.substring(1, 5)+"G"+hexTime.substring(2,8)+"TOR"+hash1.substring(2);
		return Mmd5.createString(screate);
	}
}
